import 'babel-polyfill'
const Koa = require('koa')
const Cors = require('koa2-cors')

const app = new Koa()

app.use(Cors({origin: '*'}))
app.use(ctx => {
    ctx.body = ctx.method
    ctx.status = 200
})


app.listen(3001)
